{config_load file="global.conf"}
{config_load file="menu_forecasts.conf" section="`$lang`"}

<input type="hidden" id="pairsCount" value="0" />
<input type="hidden" id="pairsCountAll" value="{$Staff->setUserGotPairs()}" />

{if $Staff->Login() }
<div class="SubMenu">
<table class="menu_left" border="0" cellpadding="0" cellspacing="0">
{*foreach item=itr from=$Staff->UserPairs()*}
{foreach item=itr from=$Staff->UserPairsBySystem()}
	<tr onMouseMove="javascript:menu_over(this);" onMouseOut="javascript: menu_out(this);" onClick="javascript: menu_click('#{$itr.Pair}');">
		<td {if $itr.AcriveForecasts} class="banOrange"{/if}>{$itr.Pair}</td>
		<td align="right">>
		{literal}
<script type="text/javascript">
<!--
       document.getElementById("pairsCount").value = parseInt(document.getElementById("pairsCount").value)+1;
// -->
</script>
{/literal}

		</td>
	</tr>
{/foreach}

<tr>
	<td><img src="{#images_dir#}/spacer.gif" height="8" border="0"><br><a href="/{$lang}/settings.html">{#menu_forecasts__msgShowHide#}</a></td>
	<td>&nbsp;</td>
</tr>
<!--
<tr>
	<td>{*include file="texts/_time.tpl"*}</td>
	<td>&nbsp;</td>
</tr>
-->
</table>
</div>
{else}
<div class="menu_left">
{ include file="texts/_sparklines.tpl"}
{ include file="_trial.tpl"}
<br><br><br><br>
</div>
{/if}
